package cn.com.dcsgo.dto;

import cn.com.dcsgo.validation.NotBlankIfNotNull;
import cn.com.dcsgo.validation.ValueOf;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 审核与回复商品评论请求参数
 *
 * @author Dcsgo
 * @since 2025/10/23 18:06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "审核与回复商品评论请求参数")
public class ReviewReplyProdCommDTO {
    /**
     * 评论ID
     */
    @Schema(description = "评论ID")
    @NotNull(message = "评论ID不能为空")
    private Long prodCommId;

    /**
     * 评论状态（1正常，0待审核，-1审核不通过）
     */
    @Schema(description = "评论状态（1正常，0待审核，-1审核不通过）")
    @ValueOf(value = {"-1", "0", "1"}, message = "评论状态只能为：1正常，0待审核，-1审核不通过")
    private Integer status;

    /**
     * 回复内容
     */
    @Schema(description = "回复内容")
    @NotBlankIfNotNull(message = "回复内容不能为空白字符串")
    private String replyContent;
}
